<template>
  <div>
    <div @click="sendEmit">发起</div>
  </div>
</template>

<script>
import emitter from '@/utils/eventBus'

export default {
  name: 'a',
  methods: {
    sendEmit() {
      emitter.emit('test', { a: 1 })
    }
  },
  mounted() {
  }
}
</script>

<style scoped>

</style>
